/*
 * To change this template, choose Tools | Templates
 * and open the template in the editor.
 */
package dao;

import java.util.ArrayList;
import java.util.List;
import model.Item;

/**
 *
 * @author Student
 */
public class ItemDAO {

    private List<Item> items = new ArrayList<Item>();

    public ItemDAO() {
        items.add(new Item(1, "Monitor", "Monitor 17inc", 1000000));
        items.add(new Item(2, "Processor", "AMD X64", 1500000));
        items.add(new Item(3, "Speker", "Altec 200w", 500000));
        items.add(new Item(4, "Keyboard", "Logitech K120", 200000));
        items.add(new Item(5, "VGA Card", "ATI Radeon", 900000));
    }

    public List<Item> getAll() {
        return items;
    }
    
    public void insert(Item item){
        items.add(item);       
    }
    
}
